<%@page import="dao.UserData"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Đăng Bài</title>
<script src="js/ckeditor/ckeditor.js"></script>
</head>
<%
String sesemail = (String) session.getAttribute("email");
 String content_err = "";
 if(request.getAttribute("content_err")!=null){
	 content_err = (String)request.getAttribute("content_err");
 }
 if(sesemail==null){
	 response.sendRedirect("index.jsp");
 }
 String title_err = "";
 if(request.getAttribute("title_err")!=null){
	 title_err = (String)request.getAttribute("title_err");
 }
 int level = UserData.getLevel(sesemail	, "accountManager");
 if(level!=1){
	 response.sendRedirect("index.isp");
 }

%>
<body>
	<form enctype="multipart/form-data" action="SaveCommunication" method="post">
		<p> Tiêu Đề:<input type="text" name="title" width="500"><span
						style="color: red;">*<%=title_err%></span></p><br>
					Thể Loại : Tin tức <input type="radio" value="0" name="type"> 
					Sự Kiện : <input type="radio" value="1" name="type">
					  Tin Cộng đồng : <input type="radio" value="2" name="type">
		<p>
			<textarea class="ckeditor" name="content" rows="100%"></textarea><span
						style="color: red;">*<%=content_err%></span>
		</p>
		<p>
			<input type="submit" value="Submit">
		</p>
	</form>


</body>
</html>